﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XMLGener.Interfaces;
using XMLGener.Data;
namespace XMLGener.Utils
{
    /// <summary>
    /// 
    /// </summary>
    public class XModuleInstance:XMLGenerModuleInterface
    {
        private XMLGenerModuleInterface instance = null;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="inst"></param>
        public XModuleInstance(XMLGenerModuleInterface inst)
        {
            this.instance = inst;
        }

        #region XMLGenerModuleInterface Members

        /// <summary>
        /// 
        /// </summary>
        /// <param name="xmlParams"></param>
        /// <param name="parentDocument"></param>
        public void setParameters(string xmlParams,XMLGenerDocument parentDocument)
        {
            this.instance.setParameters(xmlParams,parentDocument);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string generate()
        {
            return this.instance.generate();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string getDefinition()
        {
            return this.instance.getDefinition();
        }

        #endregion
    }
}
